import React from 'react'
import {Route, IndexRoute} from 'react-router'

import App from './App'
import Index from '../demo/Index'
import Next from '../demo/Next'
import Todo from '../todo/Todo'

const rootRoute = (
  <Route path="/" component={App}>
    <IndexRoute component={Todo}/>
    <Route path="/next" component={Next}/>
    <Route path="/todo" component={Todo}/>
  </Route>
)

export default rootRoute
